package com.allenkerr.mail.service;

import org.springframework.core.io.InputStreamSource;
import org.springframework.mail.SimpleMailMessage;

import java.io.File;
import java.net.URL;

/**
 * Created by 小柯 on 17/7/20.
 */
public interface MailService {

    void sendSimpleMail(SimpleMailMessage message);

    void sendSimpleMail(String to, String subject, String content);

    void sendHtmlMail(String to, String subject, String content);

    void sendAttachmentsMail(String to, String subject, String content, File... files);

    void sendAttachmentsMail(String to, String subject, String content, String... filePaths);

    void sendAttachmentsMail(String to, String subject, String content, InputStreamSource... inputStreamSources);

    void sendAttachmentsMail(String to, String subject, String content, URL... urls);
}
